<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>查看详情的消费情况</title>
<meta name="renderer" content="webkit">	
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">	
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">	
	<meta name="apple-mobile-web-app-status-bar-style" content="black">	
	<meta name="apple-mobile-web-app-capable" content="yes">	
	<meta name="format-detection" content="telephone=no">	
	<link rel="stylesheet" type="text/css" href="../static/common/layui/css/layui.css" media="all">
	<link rel="stylesheet" type="text/css" href="../static/common/bootstrap/css/bootstrap.css" media="all">
	<link rel="stylesheet" type="text/css" href="../static/common/global.css" media="all">
	<link rel="stylesheet" type="text/css" href="../static/css/personal.css" media="all">
<script type="text/javascript">
function tonull(){
	$("#order_id").val("");
	$("#order_content").val("");
	$("#qdid").val("-1");
	$("#pay_way").val("-1");
	$("#order_time").val("-1");
}
//上一页
function up(){
	document.forms[0].action="/bsc/users/orderList?page="+${info.prePage};
	document.forms[0].submit();
};
//下一页
function next(){
	document.forms[0].action="/bsc/users/orderList?page="+${info.nextPage};
	document.forms[0].submit();
};
</script>
</head>
<body>
<section class="layui-larry-box">
<blockquote class="layui-elem-quote news_search">
<form class="form-inline" role="form" action="/bsc/users/orderList" method="post">

<div class="form-group">
 订单编号:<input type="text" class="form-control" name="order_id" placeholder="请输入订单编号" id="order_id" value="${order.order_id }">
</div>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<div class="form-group">
消费内容:<input type="text" class="form-control" name="order_content" placeholder="请输入消费内容" id="order_content" value="${order.order_content }">
</div>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
店铺名称:
<select class="form-control" name="qdid" id="qdid">
<option value="-1">请选择</option>
<c:forEach items="${list2 }" var="shop">
<option value="${shop.shop_id }">${shop.shop_name }</option>
</c:forEach>
</select>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
支付方式:
<select class="form-control" name="pay_way" id="pay_way">
<option value="-1">请选择</option>
<option value="1">微信</option>
<option value="2">支付宝</option>
<option value="3">美颜币</option>
<option value="4">套餐</option>
</select>

&nbsp;&nbsp;&nbsp;&nbsp;
<button type="button"   class="btn btn-danger glyphicon glyphicon-plane" onclick="tonull()">重置</button>
<button type="submit"   class="btn btn-info glyphicon glyphicon-search " >查询</button>

</blockquote>

<div class="layui-form news_list">
                    <table class="layui-table">
					    <colgroup>
						<col width="9%">
						<col width="9%">
						<col width="9%">
						<col width="9%">
						<col width="9%">
						<col width="9%">
						<col width="9%">
						<col width="15%"> 
					</colgroup>
					<thead>
						<tr>
							<th>订单编号</th>
							<th>消费内容</th>
							<th>价格（元）</th>
							<th>支付方式</th>
							<th>实付金额（元）</th>
							<th>消耗颜值</th>
							<th>店铺编号</th>
							<th>店铺名称</th>
							<th>支付时间</th>
							<th>完成时间</th>
						</tr>
					</thead>
					<tbody class="news_content"  >
						<c:forEach items="${info.list }" var="order">
						<tr>
							<td>${order.order_id }</td>
							<td>${order.order_content }</td>
							<td>${order.order_money }</td>
							<td>
							<c:if test="${order.pay_way=='1' }">微信</c:if>
							<c:if test="${order.pay_way=='2' }">支付宝</c:if>
							<c:if test="${order.pay_way=='3' }">美颜币</c:if>
							<c:if test="${order.pay_way=='4' }">套餐</c:if>
							</td>
							<td>${order.pay_money }</td>
							<td>${order.extend_beauty_num }</td>
							<td>${order.shop_id }</td>
							<td>${order.shop.shop_name }</td>
							<td>${order.pay_time }</td>
<%-- 							<fmt:formatDate value="${order.pay_time }" pattern="yyyy-MM-dd"/> --%>
							<td>${order.finish_time }</td>
<%-- 							<fmt:formatDate value="${order.finish_time }" pattern="yyyy-MM-dd"/> --%>
						</tr>
						</c:forEach>
					</tbody>
					</table>
                     <div class="larry-table-page clearfix">
				          <a href="#" class="layui-btn layui-btn-normal" onclick="up()">上一页</a>
				          &nbsp;&nbsp;&nbsp;
				          <a class="layui-btn layui-btn-normal" href="#" onclick="next()" >下一页</a>
			         </div>
		</div>
</form>
</section>
</body>
<script type="text/javascript" src="../static/common/layui/layui.js"></script>
<script type="text/javascript" src="../static/js/newslist.js"></script>
<script type="text/javascript" src="../static/common/bootstrap/js/jquery-3.1.1.min.js"></script>
<script type="text/javascript" src="../static/common/bootstrap/js/bootstrap-3.3.7-dist/js/bootstrap.js"></script>
</html>